package com.woniuxy.userclient.client;

import com.woniuxy.core.model.Result;
import com.woniuxy.userclient.client.dto.CoachListOrderDto;
import com.woniuxy.userclient.client.dto.VenueListOrderDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("order-server")
public interface OrderFeignClient {
    //根据教练Id查找订单信息
    @GetMapping("/order/orderInfo/findByCoachId.coach")
    public Result<List<CoachListOrderDto>> findByCoachId(@RequestParam ("coachId") Integer coachId);
    @GetMapping("/order/orderInfo/findByVenueId.venue")
    public Result<List<VenueListOrderDto>> findByVenueId(@RequestParam ("venueId") Integer venueId);
}
